<!DOCTYPE html>
<html lang="zh-cn" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="referrer" content="origin-when-crossorigin"/>
    <meta name="description" content="学习无涯"/>
    <meta property="og:description" content="学习无涯"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>AlwaysLearning - Chart</title>
    <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/pintuer-2.0.custom.min.css"/>
    <link rel="stylesheet" href="./css/chart.css"/>
    <script src="./js/jquery-3.4.1.min.js"></script>
    <script src="./js/pintuer-2.0.min.js"></script>
    <script src="./js/vue.js"></script>
    <script src="./js/echarts.js"></script>
  </head>
  <body>
    <main class="layout container">
      <h1>饼图制作工具</h1>
      <div class="input-panel">
        <div>饼图标题</div>
        <input v-model="title" placeholder="饼图标题" class="input" />
        <div>饼图的数据</div>
        <input v-model="valuesInput" placeholder="饼图的数据，有效数值，用空格分开，例如：1 2 3" class="input" />
        <div>饼图的数据块标签</div>
        <input v-model="tagNamesInput" placeholder="饼图的数据块标签，用空格分开，需要和输入的数值的个数对应" class="input" />
        <div>饼图数据块颜色</div>
        <input v-model="dataColorsInput" placeholder="饼图数据块颜色，用空格分开，需要和输入的数值的个数对应，例如：#123456 #234567 #345678" class="input" />
      </div>
      <div class="operations">
        <button v-on:click="draw" class="button" style="margin-bottom: 1em;">画图</button>
      </div>
      <div class="error-message">{{ errMsg }}</div>
      <div id="pie-chart"></div>
    </main>
  </body>
  <script src="./js/chart.js"></script>
</html>
